 #parse("admin/inc/contentleft.html")
<div id="center-column">
	<div class="top-bar">
		<a href="contents/new" class="button">增加 广告</a>
		<h1>
			Contents
		</h1>
		<div class="breadcrumbs">
			<a href="#">Homepage</a> /
			<a href="#">Contents</a>
		</div>
	</div>
	<br />
	<div class="select-bar">
	</div>
	<div class="table">
		<img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
		<img src="img/bg-th-right.gif" width="7" height="7" alt=""
			class="right" />
		<table class="listing" cellpadding="0" cellspacing="0">
			<tr>
				<th class="first" width="107">
					广告标题
				</th>
				<th>
					广告链接
				</th>
				<th>
					广告图片
				</th>
				<th>
					所属频道
				</th>
				<th>
					是否显示
				</th>
				<th>
					广告显示位置
				</th>


				<th>
					删除
				</th>
				<th class="last">
					编辑
				</th>
			</tr>

			#if( $list.size() > 0) #foreach ( $data in ${list})
			<tr>
				<td class="first style1">
					${data.contentTitle}
				</td>

				<td>
					<a href="$thiscontextpath/${data.contentLink}">${data.contentLink}</a>
				</td>
				<td>
					<img src="$thiscontextpath/${data.contentImage}" width=50 height=50 />
				</td>


				<td>
					${data.channelTitle}
				</td>
				
				<td>
					#if($!{data.isDisplay}==1) 
					#set ($displaytag ="是") 
					#else 
					#set ($displaytag ="否") 
					#end
								
					${displaytag}
				</td>
				
				
				<td>
					${data.positionID}
				</td>

				<td>
					<a href="contents/delete/${data.contentID}" class="button"><img
							src="img/hr.gif" width="16" height="16" alt="" /> </a>

				</td>
				<td class="last">
					<a href="contents/edit/${data.contentID}" class="button"><img
							src="img/edit-icon.gif" width="16" height="16" alt="add" /> </a>
				</td>
			</tr>

			#end #end

		</table>

	</div>

</div>
<div id="right-column">
	<strong class="h">提示</strong>
	<div class="box">
		请慎重操作，特别是删除和编辑，操作前请熟悉CMS的频道编辑和删除的流程
	</div>
</div>
</div>
<div id="footer"></div>
</div>


</body>
</html>